<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "disease".
 *
 * @property integer $disease_id
 * @property integer $user_id
 * @property string $diagnosis
 * @property integer $duration
 * @property string $illness
 * @property string $allergy
 * @property string $family_illness
 * @property string $hobby
 * @property string $long_address
 * @property integer $created_at
 * @property integer $updated_at
 */
class Disease extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'disease';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'duration', 'created_at', 'updated_at'], 'integer'],
            [['diagnosis', 'illness', 'allergy', 'family_illness', 'hobby', 'long_address'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'disease_id' => 'Disease ID',
            'user_id' => 'User ID',
            'diagnosis' => 'Diagnosis',
            'duration' => 'Duration',
            'illness' => 'Illness',
            'allergy' => 'Allergy',
            'family_illness' => 'Family Illness',
            'hobby' => 'Hobby',
            'long_address' => 'Long Address',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
